﻿using System;

namespace Cpu6502.Opcodes
{
    public class PLP : Opcode
    {
        public PLP()
        {
            this.CpuCycles = 4;
            this.AddressType = CPU.AddressType.Implied;
        }

        public override void Execute()
        {
            CPU.Registers.P.Value = CPU.Stack.Pop();
        }
    }
}
